const Service = require("../../lib/SenecaService")

const service = new Service("Test")

service.add( "ok" , async function( msg , done) {
    console.log("Get Action")
    msg.ok = "hahah"
    return msg.a 
    // done( msg )
})

service.add("error" , async function( msg ) {
    throw new Error("测试错误")
})

module.exports = service 